﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Input;

namespace DARE
{
    public class CXnaKeyboardProvider : IInputProvider<KeyboardState>
    {
        #region fields

        private bool m_enabled;

        #endregion

        public bool Enabled
        {
            get { return m_enabled && CDare.Instance.Game.IsActive; }
            set
            {
                if (m_enabled != value)
                    m_enabled = value;
            }
        }

        public KeyboardState GetState()
        {
            return Keyboard.GetState();
        }
    }
}
